home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / DIZZY / SRC / PROTOS.H < prev    next >
Text File  |  1990-12-29  |  2KB  |  52 lines

  1. /*
  2. >>    Dizzy 0.0    protos.h
  3. >>
  4. >>    A digital circuit simulator & design program for the X Window System
  5. >>
  6. >>    Copyright 1990 Juri Munkki, all rights reserved
  7. >>
  8. >>    Please read the included file called "DizzyDoc" for information on
  9. >>    what your rights are concerning this product.
  10. */
  11.  
  12.  
  13. /*
  14. >>    Function prototypes are defined for those compilers that support them.
  15. >>    The Think C compiler supports prototypes that look like the following:
  16. */
  17. #ifdef    MACINTOSH
  18. Element     *SimAllocate(long request);
  19. long        PtrToOffset(void *pt);
  20. void        PictBit(BitMap *Bits,int PictId);
  21. int         GetConnectLine(Input *ip,Element *elem,int index,int *x1,int *y1,int *x2,int *y2);
  22. Element     *CreateNewElement(int ins,int outs,long obtype,int width);
  23. void        PresetElement(Element *newel,int x,int y,int width);
  24. int         CountElementType(long obtype);
  25. int         PntOnLine(long px,long py,long qx,long qy,long tx,long ty);
  26. int         ConnectorValue(Input *Inp);
  27. void        RunSimulation();
  28. Element     *InsertCustomChip(char *name,int x,int y);
  29. int         GetMouseTrackEvent(Point *pt);
  30. void        SetTrashRect(Rect *r);
  31. void        ExpandTrash(int x, int y);
  32. #else
  33. /*
  34. >>    These are for compilers that do not like the above prototypes.
  35. >>    Compilers with 32 bit ints do not need prototypes, so just defining
  36. >>    the return types is sufficient. If you have 16 bit ints, you need to
  37. >>    define some kind of prototypes to enforce type conversions.
  38. */
  39. Element     *SimAllocate();
  40. long        PtrToOffset();
  41. void        PictBit();
  42. int         GetConnectLine();
  43. Element     *CreateNewElement();
  44. void        PresetElement();
  45. int         CountElementType();
  46. int         PntOnLine();
  47. int         ConnectorValue();
  48. void        RunSimulation();
  49. Element     *InsertCustomChip();
  50. int         GetMouseTrackEvent();
  51. #endif
  52.